import unittest
from HTMLTestRunner import HTMLTestRunner
from api.base import Base
from setting import TEST_REPORT

if __name__ == '__main__':
    base = Base()
    base.login()

    suite = unittest.TestLoader().discover('cases','test*.py')

    with open(TEST_REPORT,'wb') as f:
        runner = HTMLTestRunner(f,title='测试报告',description='测试报告')
        runner.run(suite)


















